package code.part06_Thread;

/**
 * @author: ZJT
 * @Time: 2021/7/23
 * @Description: 多线程等待和唤醒
 */
public class P08_WaitAndNotify {

    public static void main(String[] args) {

        Goods goods = new Goods();

        Producer producer = new Producer(goods);
        Consumer consumer = new Consumer(goods);

        Thread t1 = new Thread(producer);
        Thread t2 = new Thread(consumer);
        t1.start();
        t2.start();


    }
}
